import SystemService from '../service'

class SystemController {
    static async browser(ctx) {
        const agent = ctx.headers["user-agent"];
        const ip = ctx.ip
        const host = ctx.host
        ctx.body = await SystemService.browser(agent,ip,host)
    }

    static async userip(ctx) {
        ctx.body = await SystemService.userip(ctx.req) 
    }

    static async system_message(ctx) {
        ctx.body = await SystemService.system_message() 
    }
}

export default SystemController;